package de.cms.kff.dto;

import java.util.Date;

/**
 * Data transfer object used to represent a special version of Verleih with all
 * the mitarbeiter denoted in a String.
 */
public class VerleihDTO implements Comparable<VerleihDTO> {
	private int id;
	private Date createDate = new Date();
	private String typ;
	private String kennzeichen;
	private String von;
	private String bis;
	private String vorname;
	private String nachname;
	private int kilometerstand;

	public VerleihDTO(int id, Date createDate, String typ, String kennzeichen,
			String von, String bis, String vorname, String nachname,
			int kilometerstand) {
		this.id = id;
		this.createDate = createDate;
		this.typ = typ;
		this.kennzeichen = kennzeichen;
		this.von = von;
		this.bis = bis;
		this.vorname = vorname;
		this.nachname = nachname;
		this.kilometerstand = kilometerstand;
	}

	public int getId() {
		return id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public String getTyp() {
		return typ;
	}

	public String getKennzeichen() {
		return kennzeichen;
	}

	public String getVon() {
		return von;
	}

	public String getBis() {
		return bis;
	}

	public String getVorname() {
		return vorname;
	}

	public String getNachname() {
		return nachname;
	}

	public int getKilometerstand() {
		return kilometerstand;
	}

	@Override
	public int compareTo(VerleihDTO o) {
		return this.createDate.compareTo(o.createDate);
	}

}
